/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package engine;

import java.util.Comparator;

/**
 *
 * @author bi
 */
public class Array2DComparator implements Comparator<String[]> {

    private int sortedCol;

    public Array2DComparator(int sortedCol) {
        this.sortedCol = sortedCol;
    }

    public int compare(String[] o1, String[] o2) {
        return o1[sortedCol].compareTo(o2[sortedCol]);
    }
}
